package ali;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class Stream {
    public static void main(String[] args) {
        List<String> list = new ArrayList<>(Arrays.asList("hello","world"));
        list.stream().map(item->item.split("")).forEach(System.out::println);

        list.stream().flatMap(item-> Arrays.stream(item.split(""))).forEach(System.out::println);
    }
}
